﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAC.ServiceContracts;
using System.ServiceModel;

namespace DAC.Simulator.Services
{
    [ServiceBehavior(InstanceContextMode = InstanceContextMode.Single)]
    public class DACUserServiceAdapter : IDACUserService
    {
       
        public Response DisableUser(DisableUserRequest request)
        {
            SimulatorForm.UserServiceLogger.WriteLine(string.Format("This userid [{0}] in organization [{1}] is now disabled", request.UserID, request.MatchCode));

            return new Response
            {
                IsSuccessful = true,
                Message = "Successfully disabled the user"
            };
        }
    }
}
